---
import icons from "../assets/icons.svg?url"

export interface Props {
	name: string
	class?: string
}
const { name, class: class_ } = Astro.props
---

<svg
	class:list={["icon", `icon--${name}`, { [`${class_}`]: class_ }]}
	width="16"
	height="16"
>
	<use href={`${icons}#${name}`}></use>
</svg>
